home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9732 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: galaxy.ucr.edu!not-for-mail
  2. From: thp@cs.ucr.edu (Tom Payne)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
  4. Subject: Re: C/C++ knocks the crap out of Ada
  5. Followup-To: comp.lang.ada,comp.lang.c,comp.lang.c++
  6. Date: 4 Mar 1996 03:37:45 GMT
  7. Organization: University of California, Riverside
  8. Message-ID: <4hdoi9$ag9@galaxy.ucr.edu>
  9. References: <JSA.96Feb16135027@organon.com> <4gaa6l$8mk@post.gsfc.nasa.gov> <4gd94r$isu@mack.rt66.com> <1996Feb22.005518.13396@leeweyr.sccsi.com> <4gvrffINNlqo@anvil.ugrad.cs.ubc.ca> <4h8233$c7p$1@canberra.DIALix.oz.au>
  10. NNTP-Posting-Host: corvette.ucr.edu
  11. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  12.  
  13. Shayne Flint (shayne@canberra.DIALix.oz.au) wrote:
  14. : c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
  15. : >What is intrinsically unsafe about C? I could write a strict,
  16. : >standard-conforming, anally-retentive program in any language that could kill
  17. : >people (maliciously, of course).
  18. : Yes, of course, but could you guarantee that a program written in such a way
  19. : would NOT kill people. 
  20.  
  21. What scares me is that many C/C++ programmers think they have written
  22. a conforming program when they have not.  For instance, many are
  23. astonished to learn that their signal-handler violates the standards
  24. if it reads a global variable (even one that is volatile and atomic).
  25. It's almost impossible to write efficient real-time programs in
  26. conforming C/C++, which essentially rules out responding to external
  27. events except through polling.
  28.  
  29. Tom Payne (thp@cs.ucr.edu)
  30.  
  31.  
  32.